public class Robot implements IRunning {
    String name;
    public Robot(String name) {
        this.name = name;
        System.out.println("调用了构造方法");
    }

    public void run(){
        System.out.println(name + "机器人在跑");
    }
}
